package com.forever7776.life.core.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 友情链接
 * </p>
 *
 * @author kz
 * @since 2018-03-27
 */
@TableName("friendly_link")
public class FriendlyLink extends Model<FriendlyLink> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 友情链接---公司名称
     */
    private String company;
    /**
     * 联系电话
     */
    private String tel;
    /**
     * 友情链接网址
     */
    private String url;
    /**
     * 友情链接图片
     */
    private String pic;
    /**
     * 描述
     */
    private String desc;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 状态（是否删除：0-否 1-是）
     */
    private Integer status;
    @TableField("insert_date")
    private Date insertDate;
    @TableField("last_date")
    private Date lastDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FriendlyLink{" +
        ", id=" + id +
        ", company=" + company +
        ", tel=" + tel +
        ", url=" + url +
        ", pic=" + pic +
        ", desc=" + desc +
        ", sort=" + sort +
        ", status=" + status +
        ", insertDate=" + insertDate +
        ", lastDate=" + lastDate +
        "}";
    }
}
